package com.intellagric.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class AgtSpeciesExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AgtSpeciesExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("id like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("id not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andPidIsNull() {
            addCriterion("pid is null");
            return (Criteria) this;
        }

        public Criteria andPidIsNotNull() {
            addCriterion("pid is not null");
            return (Criteria) this;
        }

        public Criteria andPidEqualTo(String value) {
            addCriterion("pid =", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidNotEqualTo(String value) {
            addCriterion("pid <>", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidGreaterThan(String value) {
            addCriterion("pid >", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidGreaterThanOrEqualTo(String value) {
            addCriterion("pid >=", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidLessThan(String value) {
            addCriterion("pid <", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidLessThanOrEqualTo(String value) {
            addCriterion("pid <=", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidLike(String value) {
            addCriterion("pid like", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidNotLike(String value) {
            addCriterion("pid not like", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidIn(List<String> values) {
            addCriterion("pid in", values, "pid");
            return (Criteria) this;
        }

        public Criteria andPidNotIn(List<String> values) {
            addCriterion("pid not in", values, "pid");
            return (Criteria) this;
        }

        public Criteria andPidBetween(String value1, String value2) {
            addCriterion("pid between", value1, value2, "pid");
            return (Criteria) this;
        }

        public Criteria andPidNotBetween(String value1, String value2) {
            addCriterion("pid not between", value1, value2, "pid");
            return (Criteria) this;
        }

        public Criteria andSpeciesNameIsNull() {
            addCriterion("species_name is null");
            return (Criteria) this;
        }

        public Criteria andSpeciesNameIsNotNull() {
            addCriterion("species_name is not null");
            return (Criteria) this;
        }

        public Criteria andSpeciesNameEqualTo(String value) {
            addCriterion("species_name =", value, "speciesName");
            return (Criteria) this;
        }

        public Criteria andSpeciesNameNotEqualTo(String value) {
            addCriterion("species_name <>", value, "speciesName");
            return (Criteria) this;
        }

        public Criteria andSpeciesNameGreaterThan(String value) {
            addCriterion("species_name >", value, "speciesName");
            return (Criteria) this;
        }

        public Criteria andSpeciesNameGreaterThanOrEqualTo(String value) {
            addCriterion("species_name >=", value, "speciesName");
            return (Criteria) this;
        }

        public Criteria andSpeciesNameLessThan(String value) {
            addCriterion("species_name <", value, "speciesName");
            return (Criteria) this;
        }

        public Criteria andSpeciesNameLessThanOrEqualTo(String value) {
            addCriterion("species_name <=", value, "speciesName");
            return (Criteria) this;
        }

        public Criteria andSpeciesNameLike(String value) {
            addCriterion("species_name like", value, "speciesName");
            return (Criteria) this;
        }

        public Criteria andSpeciesNameNotLike(String value) {
            addCriterion("species_name not like", value, "speciesName");
            return (Criteria) this;
        }

        public Criteria andSpeciesNameIn(List<String> values) {
            addCriterion("species_name in", values, "speciesName");
            return (Criteria) this;
        }

        public Criteria andSpeciesNameNotIn(List<String> values) {
            addCriterion("species_name not in", values, "speciesName");
            return (Criteria) this;
        }

        public Criteria andSpeciesNameBetween(String value1, String value2) {
            addCriterion("species_name between", value1, value2, "speciesName");
            return (Criteria) this;
        }

        public Criteria andSpeciesNameNotBetween(String value1, String value2) {
            addCriterion("species_name not between", value1, value2, "speciesName");
            return (Criteria) this;
        }

        public Criteria andSpeciesAbstractIsNull() {
            addCriterion("species_abstract is null");
            return (Criteria) this;
        }

        public Criteria andSpeciesAbstractIsNotNull() {
            addCriterion("species_abstract is not null");
            return (Criteria) this;
        }

        public Criteria andSpeciesAbstractEqualTo(String value) {
            addCriterion("species_abstract =", value, "speciesAbstract");
            return (Criteria) this;
        }

        public Criteria andSpeciesAbstractNotEqualTo(String value) {
            addCriterion("species_abstract <>", value, "speciesAbstract");
            return (Criteria) this;
        }

        public Criteria andSpeciesAbstractGreaterThan(String value) {
            addCriterion("species_abstract >", value, "speciesAbstract");
            return (Criteria) this;
        }

        public Criteria andSpeciesAbstractGreaterThanOrEqualTo(String value) {
            addCriterion("species_abstract >=", value, "speciesAbstract");
            return (Criteria) this;
        }

        public Criteria andSpeciesAbstractLessThan(String value) {
            addCriterion("species_abstract <", value, "speciesAbstract");
            return (Criteria) this;
        }

        public Criteria andSpeciesAbstractLessThanOrEqualTo(String value) {
            addCriterion("species_abstract <=", value, "speciesAbstract");
            return (Criteria) this;
        }

        public Criteria andSpeciesAbstractLike(String value) {
            addCriterion("species_abstract like", value, "speciesAbstract");
            return (Criteria) this;
        }

        public Criteria andSpeciesAbstractNotLike(String value) {
            addCriterion("species_abstract not like", value, "speciesAbstract");
            return (Criteria) this;
        }

        public Criteria andSpeciesAbstractIn(List<String> values) {
            addCriterion("species_abstract in", values, "speciesAbstract");
            return (Criteria) this;
        }

        public Criteria andSpeciesAbstractNotIn(List<String> values) {
            addCriterion("species_abstract not in", values, "speciesAbstract");
            return (Criteria) this;
        }

        public Criteria andSpeciesAbstractBetween(String value1, String value2) {
            addCriterion("species_abstract between", value1, value2, "speciesAbstract");
            return (Criteria) this;
        }

        public Criteria andSpeciesAbstractNotBetween(String value1, String value2) {
            addCriterion("species_abstract not between", value1, value2, "speciesAbstract");
            return (Criteria) this;
        }

        public Criteria andSpeciesContentIsNull() {
            addCriterion("species_content is null");
            return (Criteria) this;
        }

        public Criteria andSpeciesContentIsNotNull() {
            addCriterion("species_content is not null");
            return (Criteria) this;
        }

        public Criteria andSpeciesContentEqualTo(String value) {
            addCriterion("species_content =", value, "speciesContent");
            return (Criteria) this;
        }

        public Criteria andSpeciesContentNotEqualTo(String value) {
            addCriterion("species_content <>", value, "speciesContent");
            return (Criteria) this;
        }

        public Criteria andSpeciesContentGreaterThan(String value) {
            addCriterion("species_content >", value, "speciesContent");
            return (Criteria) this;
        }

        public Criteria andSpeciesContentGreaterThanOrEqualTo(String value) {
            addCriterion("species_content >=", value, "speciesContent");
            return (Criteria) this;
        }

        public Criteria andSpeciesContentLessThan(String value) {
            addCriterion("species_content <", value, "speciesContent");
            return (Criteria) this;
        }

        public Criteria andSpeciesContentLessThanOrEqualTo(String value) {
            addCriterion("species_content <=", value, "speciesContent");
            return (Criteria) this;
        }

        public Criteria andSpeciesContentLike(String value) {
            addCriterion("species_content like", value, "speciesContent");
            return (Criteria) this;
        }

        public Criteria andSpeciesContentNotLike(String value) {
            addCriterion("species_content not like", value, "speciesContent");
            return (Criteria) this;
        }

        public Criteria andSpeciesContentIn(List<String> values) {
            addCriterion("species_content in", values, "speciesContent");
            return (Criteria) this;
        }

        public Criteria andSpeciesContentNotIn(List<String> values) {
            addCriterion("species_content not in", values, "speciesContent");
            return (Criteria) this;
        }

        public Criteria andSpeciesContentBetween(String value1, String value2) {
            addCriterion("species_content between", value1, value2, "speciesContent");
            return (Criteria) this;
        }

        public Criteria andSpeciesContentNotBetween(String value1, String value2) {
            addCriterion("species_content not between", value1, value2, "speciesContent");
            return (Criteria) this;
        }

        public Criteria andSpeciesCoverIsNull() {
            addCriterion("species_cover is null");
            return (Criteria) this;
        }

        public Criteria andSpeciesCoverIsNotNull() {
            addCriterion("species_cover is not null");
            return (Criteria) this;
        }

        public Criteria andSpeciesCoverEqualTo(String value) {
            addCriterion("species_cover =", value, "speciesCover");
            return (Criteria) this;
        }

        public Criteria andSpeciesCoverNotEqualTo(String value) {
            addCriterion("species_cover <>", value, "speciesCover");
            return (Criteria) this;
        }

        public Criteria andSpeciesCoverGreaterThan(String value) {
            addCriterion("species_cover >", value, "speciesCover");
            return (Criteria) this;
        }

        public Criteria andSpeciesCoverGreaterThanOrEqualTo(String value) {
            addCriterion("species_cover >=", value, "speciesCover");
            return (Criteria) this;
        }

        public Criteria andSpeciesCoverLessThan(String value) {
            addCriterion("species_cover <", value, "speciesCover");
            return (Criteria) this;
        }

        public Criteria andSpeciesCoverLessThanOrEqualTo(String value) {
            addCriterion("species_cover <=", value, "speciesCover");
            return (Criteria) this;
        }

        public Criteria andSpeciesCoverLike(String value) {
            addCriterion("species_cover like", value, "speciesCover");
            return (Criteria) this;
        }

        public Criteria andSpeciesCoverNotLike(String value) {
            addCriterion("species_cover not like", value, "speciesCover");
            return (Criteria) this;
        }

        public Criteria andSpeciesCoverIn(List<String> values) {
            addCriterion("species_cover in", values, "speciesCover");
            return (Criteria) this;
        }

        public Criteria andSpeciesCoverNotIn(List<String> values) {
            addCriterion("species_cover not in", values, "speciesCover");
            return (Criteria) this;
        }

        public Criteria andSpeciesCoverBetween(String value1, String value2) {
            addCriterion("species_cover between", value1, value2, "speciesCover");
            return (Criteria) this;
        }

        public Criteria andSpeciesCoverNotBetween(String value1, String value2) {
            addCriterion("species_cover not between", value1, value2, "speciesCover");
            return (Criteria) this;
        }

        public Criteria andCreatedByIsNull() {
            addCriterion("created_by is null");
            return (Criteria) this;
        }

        public Criteria andCreatedByIsNotNull() {
            addCriterion("created_by is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedByEqualTo(String value) {
            addCriterion("created_by =", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByNotEqualTo(String value) {
            addCriterion("created_by <>", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByGreaterThan(String value) {
            addCriterion("created_by >", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByGreaterThanOrEqualTo(String value) {
            addCriterion("created_by >=", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByLessThan(String value) {
            addCriterion("created_by <", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByLessThanOrEqualTo(String value) {
            addCriterion("created_by <=", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByLike(String value) {
            addCriterion("created_by like", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByNotLike(String value) {
            addCriterion("created_by not like", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByIn(List<String> values) {
            addCriterion("created_by in", values, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByNotIn(List<String> values) {
            addCriterion("created_by not in", values, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByBetween(String value1, String value2) {
            addCriterion("created_by between", value1, value2, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByNotBetween(String value1, String value2) {
            addCriterion("created_by not between", value1, value2, "createdBy");
            return (Criteria) this;
        }

        public Criteria andUpdatedTimeIsNull() {
            addCriterion("updated_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdatedTimeIsNotNull() {
            addCriterion("updated_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatedTimeEqualTo(Date value) {
            addCriterion("updated_time =", value, "updatedTime");
            return (Criteria) this;
        }

        public Criteria andUpdatedTimeNotEqualTo(Date value) {
            addCriterion("updated_time <>", value, "updatedTime");
            return (Criteria) this;
        }

        public Criteria andUpdatedTimeGreaterThan(Date value) {
            addCriterion("updated_time >", value, "updatedTime");
            return (Criteria) this;
        }

        public Criteria andUpdatedTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("updated_time >=", value, "updatedTime");
            return (Criteria) this;
        }

        public Criteria andUpdatedTimeLessThan(Date value) {
            addCriterion("updated_time <", value, "updatedTime");
            return (Criteria) this;
        }

        public Criteria andUpdatedTimeLessThanOrEqualTo(Date value) {
            addCriterion("updated_time <=", value, "updatedTime");
            return (Criteria) this;
        }

        public Criteria andUpdatedTimeIn(List<Date> values) {
            addCriterion("updated_time in", values, "updatedTime");
            return (Criteria) this;
        }

        public Criteria andUpdatedTimeNotIn(List<Date> values) {
            addCriterion("updated_time not in", values, "updatedTime");
            return (Criteria) this;
        }

        public Criteria andUpdatedTimeBetween(Date value1, Date value2) {
            addCriterion("updated_time between", value1, value2, "updatedTime");
            return (Criteria) this;
        }

        public Criteria andUpdatedTimeNotBetween(Date value1, Date value2) {
            addCriterion("updated_time not between", value1, value2, "updatedTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeIsNull() {
            addCriterion("created_time is null");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeIsNotNull() {
            addCriterion("created_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeEqualTo(Date value) {
            addCriterion("created_time =", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeNotEqualTo(Date value) {
            addCriterion("created_time <>", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeGreaterThan(Date value) {
            addCriterion("created_time >", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("created_time >=", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeLessThan(Date value) {
            addCriterion("created_time <", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeLessThanOrEqualTo(Date value) {
            addCriterion("created_time <=", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeIn(List<Date> values) {
            addCriterion("created_time in", values, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeNotIn(List<Date> values) {
            addCriterion("created_time not in", values, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeBetween(Date value1, Date value2) {
            addCriterion("created_time between", value1, value2, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeNotBetween(Date value1, Date value2) {
            addCriterion("created_time not between", value1, value2, "createdTime");
            return (Criteria) this;
        }

        public Criteria andDelFlagIsNull() {
            addCriterion("del_flag is null");
            return (Criteria) this;
        }

        public Criteria andDelFlagIsNotNull() {
            addCriterion("del_flag is not null");
            return (Criteria) this;
        }

        public Criteria andDelFlagEqualTo(String value) {
            addCriterion("del_flag =", value, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagNotEqualTo(String value) {
            addCriterion("del_flag <>", value, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagGreaterThan(String value) {
            addCriterion("del_flag >", value, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagGreaterThanOrEqualTo(String value) {
            addCriterion("del_flag >=", value, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagLessThan(String value) {
            addCriterion("del_flag <", value, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagLessThanOrEqualTo(String value) {
            addCriterion("del_flag <=", value, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagLike(String value) {
            addCriterion("del_flag like", value, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagNotLike(String value) {
            addCriterion("del_flag not like", value, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagIn(List<String> values) {
            addCriterion("del_flag in", values, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagNotIn(List<String> values) {
            addCriterion("del_flag not in", values, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagBetween(String value1, String value2) {
            addCriterion("del_flag between", value1, value2, "delFlag");
            return (Criteria) this;
        }

        public Criteria andDelFlagNotBetween(String value1, String value2) {
            addCriterion("del_flag not between", value1, value2, "delFlag");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}